package wiki.controle;

import java.util.ArrayList;  
import java.util.List;  

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
    
import org.primefaces.model.DualListModel;

@ManagedBean
@SessionScoped
public class PickListBean {
	  
    private DualListModel<String> cities;  
  
    public PickListBean() {  
    
        //Cities  
        List<String> source = new ArrayList<String>();  
        List<String> target = new ArrayList<String>();  
  
        source.add("Istanbul");  
        source.add("Ankara");  
        source.add("Izmir");  
        source.add("Antalya");  
        source.add("Bursa");  
  
        cities = new DualListModel<String>(source, target);  
    }    
    public DualListModel<String> getCities() {  
        return cities;  
    }  
    public void setCities(DualListModel<String> cities) {  
        this.cities = cities;  
    }  

}
